<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <script type="text/javascript">
    	$(document).ready(function(){
    		$("#writeForm").submit(function(){
    			if($("#writeForm [name=title]").val()==""){
    				alert("제목을 입력하세요!");
    				return false;
    			} else if($("#writeForm [name=content]").val()==""){
    				alert("내용을 입력하세요!");
    				return false;
    			}
    		})
    	})
    </script>

<h2> 글 쓰기 </h2>
<form method="post" id="writeForm" action="writeReviewBoard.do" enctype="multipart/form-data">
<input type="hidden" name="consumerId" value="${sessionScope.cvo.id }">
<input type="hidden" name="productId" value="${requestScope.productId }">
TITLE : <input type="text" name="title"><br>
<textarea rows="20" cols="50" name="content"></textarea><br>
<input type="file" name="uploadFile"><br>
<input type="submit" value="리뷰 등록" class="submit">
</form>